package biz.obake.team.touchprotector.e;

public class a {
    public static void a() {
        biz.obake.team.touchprotector.g.a.r("pin", "");
    }

    public static String b() {
        return biz.obake.team.touchprotector.g.a.l("pin");
    }

    public static boolean c() {
        int length = biz.obake.team.touchprotector.g.a.l("pin").length();
        return 4 <= length && length <= 8;
    }

    public static boolean d() {
        String l = biz.obake.team.touchprotector.g.a.l("pin");
        int length = l.length();
        if (length == 0) {
            return true;
        }
        if (length < 4 || 8 < length) {
            return false;
        }
        for (int i = 0; i < length; i++) {
            char charAt = l.charAt(i);
            if (charAt < '0' || '9' < charAt) {
                return false;
            }
        }
        return true;
    }

    public static boolean e() {
        return biz.obake.team.touchprotector.donation.a.p() && c() && biz.obake.team.touchprotector.g.a.g("require_pin");
    }
}
